package lab02.test35;

/**
 * Created by admin on 2017/11/18.
 */
public class Salesman extends Employee {
    double baseSalary;
    int quantity;
    double commision;
    public Salesman(String namne,double baseSalary,int quantity,double commision) {
        super(namne);
        this.baseSalary=baseSalary;
        this.quantity=quantity;
        this.commision=commision;

    }

    @Override
    public double computeSalary() {
        return baseSalary+quantity*commision;
    }
}
